import http from '@/services/http';

export function getList<T>(params: Requestor.ListRequestParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/AdminUserRole/list', {
    data: params,
  });
}
export function getAllSelectList<T>(params: RoleManagementApi.SelectParams) {
  return http.post<Requestor.Response<T>>('/api/admin/AdminUserRole/get/department/all/list', {
    data: params,
  });
}
export function getInfo<T>(params: RoleManagementApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/AdminUserRole/get/info', {
    params,
  });
}
export function create(params: RoleManagementApi.CreateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/AdminUserRole/create', {
    data: params,
  });
}
export function update(params: RoleManagementApi.UpdateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/AdminUserRole/update', {
    data: params,
  });
}
export function remove(params: RoleManagementApi.DeleteParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/AdminUserRole/delete', {
    data: params,
  });
}
